/*
 * Copyright 2007-2009 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.paoding.rose.web.var;

import java.util.Map;

import net.paoding.rose.web.Invocation;
import net.paoding.rose.web.impl.thread.ActionInvocation;
import net.paoding.rose.web.impl.thread.ControllerInvocation;
import net.paoding.rose.web.impl.thread.MatchResult;
import net.paoding.rose.web.impl.thread.ModuleInvocation;
import net.paoding.rose.web.impl.thread.Path;

/**
 * 
 * @author qieqie.wang@paoding.net
 * 
 */
public class InvocationVariables {

	private Invocation invocation;
	private Path path;
	private MatchResult controllerMatchResult;
	private MatchResult actionMatchResult;
	private ActionInvocation actionInvocation;
	private ControllerInvocation controllerInvocation;
	private ModuleInvocation moduleInvocation;
	private Map<String, Object> attributesSnapshot;

	public Invocation getInvocation() {
		return invocation;
	}

	public void setInvocation(Invocation invocation) {
		this.invocation = invocation;
	}

	public Path getPath() {
		return path;
	}

	public void setPath(Path path) {
		this.path = path;
	}

	public MatchResult getActionMatchResult() {
		return actionMatchResult;
	}

	public void setActionMatchResult(MatchResult matchResult) {
		this.actionMatchResult = matchResult;
	}
	
	public MatchResult getControllerMatchResult() {
		return controllerMatchResult;
	}
	
	public void setControllerMatchResult(MatchResult controllerMatchResult) {
		this.controllerMatchResult = controllerMatchResult;
	}

	public ActionInvocation getActionInvocation() {
		return actionInvocation;
	}

	public void setActionInvocation(ActionInvocation actionInvocation) {
		this.actionInvocation = actionInvocation;
	}

	public ControllerInvocation getControllerInvocation() {
		return controllerInvocation;
	}

	public void setControllerInvocation(ControllerInvocation controllerInvocation) {
		this.controllerInvocation = controllerInvocation;
	}

	public ModuleInvocation getModuleInvocation() {
		return moduleInvocation;
	}

	public void setModuleInvocation(ModuleInvocation moduleInvocation) {
		this.moduleInvocation = moduleInvocation;
	}

	public Map<String, Object> getAttributesSnapshot() {
		return attributesSnapshot;
	}

	public void setAttributesSnapshot(Map<String, Object> attributesSnapshot) {
		this.attributesSnapshot = attributesSnapshot;
	}

}
